import service from '@/utils/request';

export const updateUserProfile = (data: any) => {
  return service.request({
    url: '/system/user/profile',
    method: 'put',
    data,
  });
};
// 用户头像上传
export function userUploadApi(
  data: any,
  config: {
    controller: AbortController;
    onUploadProgress?: (progressEvent: any) => void;
  }
) {
  return service.request({
    url: '/system/user/profile/avatar',
    method: 'post',
    data,
    config,
  });
}
// 重置密码
export const updateUserPwd = (params: any) => {
  return service.request({
    url: '/system/user/profile/updatePwd',
    method: 'put',
    params,
  });
};
export default null;
